package com.think.archive.service;

import com.alibaba.fastjson.JSONArray;
import com.think.archive.model.SysFunc;
import org.springframework.stereotype.Service;

import java.util.List;

public interface SysFuncService {

    List<SysFunc> selectAllFunc() ;

    List<SysFunc> selectListByCode(String code);

    int insertOrUpdateFunc(SysFunc func);

    int deleteFunc(int id);

    int changeStatusFunc(int id, String status);

    SysFunc selectByFuncCode(String funcCode);

    JSONArray findFuncTree(String funcCode);

    List<SysFunc> findNextLevelFunc(String funcCode);

}
